<?php
// $Id: block.tpl.php,v 1.3 2007/08/07 08:39:36 goba Exp $
?>

<?php //print_r($event); ?>

<table>
  <tr>
    <th colspan = "5"><?php print $event['link']?></th>
  </tr>
  <tr>
    <th style="width:40%"><?php print t('Player')?></th>
    <th style="width:15%"><?php print t('P')?></th>
    <th style="width:15%"><?php print t('W')?></th>
    <th style="width:15%"><?php print t('D')?></th>
    <th style="width:15%"><?php print t('L')?></th>
  </tr>
  <?php if ($event['count'] == 0): ?>
  <tr>
    <th colspan = "13"><?php print t('No matches')?></th>
  </tr>
  </table>
  <?php elseif ($event['count'] > 0): ?>
</table>

<marquee behavior='scroll' direction='up' width='100%' height='200' scrollamount='1' scrolldelay='60'>
<table>
  <?php $row = 1 ?>
  <?php foreach ($players as $player): ?>
    <tr class='<?php print ($row % 2 == 0) ? 'odd' : 'even' ?>'>
      <td style="width:40%"><?php print $row ?>.&nbsp;<?php print $player['title'] ?></td>
      <td style="width:15%"><?php print $player['total_points'] ?></td>
      <td style="width:15%"><?php print $player['total_wins'] ?></td>
      <td style="width:15%"><?php print $player['total_draws'] ?></td>
      <td style="width:15%"><?php print $player['total_loses'] ?></td>
    </tr>
    <?php $row++; ?>
  <?php endforeach; ?>
</table>
</marquee>
<?php endif; ?>